import request from '@/utils/request'

// 查询掘进日报列表
export function listDrivingDayReport(query) {
  return request({
    url: '/dispatch/drivingDayReport/list',
    method: 'get',
    params: query
  })
}

// 查询掘进日报详细
export function getDrivingDayReport(reportId) {
  return request({
    url: '/dispatch/drivingDayReport/' + reportId,
    method: 'get'
  })
}

// 新增掘进日报
export function addDrivingDayReport(data) {
  return request({
    url: '/dispatch/drivingDayReport',
    method: 'post',
    data: data
  })
}

// 修改掘进日报
export function updateDrivingDayReport(data) {
  return request({
    url: '/dispatch/drivingDayReport',
    method: 'put',
    data: data
  })
}

// 删除掘进日报
export function delDrivingDayReport(reportId) {
  return request({
    url: '/dispatch/drivingDayReport/' + reportId,
    method: 'delete'
  })
}
